package com.sg.dto.biz.bff.common;

import com.wicket.okrbff.common.annotations.TreeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffTaskCategoriesDto
 * @使用场景
 */
@Data
public class BffTaskCategoriesDto implements Serializable {

    /**
     * 类型字典ID
     */
    @ApiModelProperty("类型字典ID")
    @TreeType("id")
    private String typeDictionaryId;

    /**
     * 类型字典编码
     */
    @ApiModelProperty("类型字典编码")
    private String typeDictionaryCode;

    /**
     * 类型字典名称
     */
    @ApiModelProperty("类型字典名称")
    private String typeDictionaryName;

    /**
     * 类型用途编码 DEPT_TYPE:部门类型 POSITION_CLASS:职务类别 INDUCTION_TYPE:就职类型 INDUCTION_STATE:就职状态 WROK_TASK_SOURCE_CONF:工作任务来源 TASK_CATEGORIES:任务分类
     */
    @ApiModelProperty("类型用途编码")
    private String purposeCode;

    /**
     * 组织ID
     */
    @ApiModelProperty("组织ID")
    private String organizationId;

    /**
     * 主题标识
     */
    @ApiModelProperty("主题标识")
    private String themeCode;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 是否系统数据 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否系统数据")
    private String isSystemData;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 上级类型字典编码
     */
    @TreeType("pid")
    @ApiModelProperty("上级类型字典编码")
    private String parentTypeDictionaryCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTaskCategoriesDto that = (BffTaskCategoriesDto) o;
        return typeDictionaryId == that.typeDictionaryId && typeDictionaryCode == that.typeDictionaryCode && typeDictionaryName == that.typeDictionaryName && purposeCode == that.purposeCode && organizationId == that.organizationId && themeCode == that.themeCode && cycleStandardName == that.cycleStandardName && isSystemData == that.isSystemData && orderNumber == that.orderNumber && operationInductionId == that.operationInductionId && operateTime == that.operateTime && subjectLifeCycle == that.subjectLifeCycle && parentTypeDictionaryCode == that.parentTypeDictionaryCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), typeDictionaryId, typeDictionaryCode, typeDictionaryName, purposeCode, organizationId, themeCode, cycleStandardName, isSystemData, orderNumber, operationInductionId, operateTime, subjectLifeCycle, parentTypeDictionaryCode);
    }

}
